
const Mock = require('better-mock/dist/mock.mp.js')
 
Mock.mock('http://localhost:8080/api/test', 'GET', {
	"code": 0,
	"msg": "succsee",
	"data": {
		list: [
			{
				id: 12,
				danhao: 'adsakhdk',
				spu: '19873',
				miaoshu: '测试一',
				jihua: '10',
				yishou: '69'
			},
			{
				id: 13,
				danhao: 'aduagdjacl',
				spu: '9898',
				miaoshu: '测试二',
				jihua: '30',
				yishou: '89'
			},
			{
				id: 14,
				danhao: 'fdkjhkjsjf',
				spu: '67678',
				miaoshu: '测试三',
				jihua: '40',
				yishou: '09'
			},
		],
		total: 3
	}
})

Mock.mock('http://localhost:8080/api/test2', 'GET', {
	"code": 0,
	"msg": "succsee",
	"data": {
		list: [
			{
				id: 12,
				danhao: '2198akj',
				wuliao: '19',
				miaoshu: '测试一',
				renwu: '32',
				shuliang: '523'
			},
			{
				id: 13,
				danhao: 'asld89',
				wuliao: '21',
				miaoshu: '测试一',
				renwu: '10',
				shuliang: '69'
			},
			{
				id: 14,
				danhao: 'aahdl',
				wuliao: '809',
				miaoshu: '测试一',
				renwu: '987',
				shuliang: '09'
			},
		],
		total: 3
		
	}
})

Mock.mock('http://localhost:8080/api/test3', 'GET', {
	"code": 0,
	"msg": "succsee",
	"data": {
		list: [
			{
				id: 13,
				guige: 'adhl',
				changdu: '21',
				shuliang: '43',
				spu: '32',
			},
			{
				id: 14,
				guige: 'sfsd',
				changdu: '21',
				shuliang: '42',
				spu: 'sdaddasa',
			},
			{
				id: 12,
				guige: 'egerfw',
				changdu: '33',
				shuliang: '22',
				spu: '11',
			},
		],
		total: 3
		
	}
})